
class Person implements Cloneable{
    public int age;

    @Override
    protected Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}

public class Test3 {
    public static void main(String[] args) throws CloneNotSupportedException {
        Person person=new Person();
           Person person1= (Person)person.clone();
    }
}
